package com.cgsd.heyu.api;

import android.app.usage.UsageStatsManager;
import android.os.Environment;

import com.cgsd.heyu.App;
import com.cgsd.heyu.BuildConfig;
import com.cgsd.heyu.common.UserModeConfig;

import java.io.File;


/**
 * Author: sky on 2021/3/18 10:50
 * Email: xcode126@126.com
 * Desc:
 */
public class AppConfig {
//    public static final String BASE_URL = BuildConfig.FLAVOR.equals("official") ? AppConfig.HOST_TEST : AppConfig.HOST_TEST;
    public static final String BASE_URL = BuildConfig.FLAVOR.equals("official") ? AppConfig.PHP_TEST : AppConfig.PHP_TEST;
    public static final String BASE_PHP_URL = BuildConfig.FLAVOR.equals("official") ? AppConfig.PHP_TEST : AppConfig.PHP_TEST;

    public static final String HOST_RELEASE = "http://api.hei-yu.net:17991";//正式
    public static final String HOST_TEST = "http://8.129.214.115:7903";//测试
    //String BASE_URL = "http://api.cgsd163.com";

    public static final String PHP_TEST = "http://demo.cgsd163.com";//php test
    //公司用户协议
    public static final String USER_AGREEMENT = "http://8.129.214.115:8802/";
    //公司隐私协议
    public static final String PRIVACY_PROTOCOL = "http://8.129.214.115:8803/";
    //首页h5
    public static final String BRAND_H5 = "https://cgsd.jiefutong.net/reward";
    /*******************************************************************************************************************/
    //穿山甲广告id
    public static String AD_C_ID = BuildConfig.FLAVOR.equals("official") ? "5152222" : "5152222";//测试5141291
    //一次加载条数
    public static final int PAGE_SIZE = 10;
    /*******************************************************************************************************************/
    public final static String DEFAULT_APP_FOLDER = Environment.getExternalStorageDirectory() + File.separator + App.getInstance().getPackageName();
    public static final String DEFAULT_IMAGE_PATH = DEFAULT_APP_FOLDER + File.separator + "images"; //保存图片的默认路径
    /*******************************************************************************************************************/
    public static final String WX_ID = "wxc77f668ec6315917";
    // 享玩id
    public static final String XW_ID = "11571";
    public static final String XW_KEY = "PCDDXW6_CGSD_11571";

    //看新闻
    public static final String NEWS_KEY = "90900f908e694aa58677cd830aabe503";
    //穿山甲广告 userId
//    public static final String AD_USER_ID = "tag123";
    public static final String AD_USER_ID = UserModeConfig.getInstance().userId;


}
